<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div id="div1"></div>
    <script
    type="text/javascript"
    src="https://cdn.jsdelivr.net/npm/wangeditor@latest/dist/wangEditor.min.js"
  ></script>
  <script type="text/javascript">
    const E = window.wangEditor
    const editor = new E("#div1")
    // 或者 const editor = new E(document.getElementById('div1'))
    editor.create()
  </script>
</body>
</html>